Skip to content

Conversation

@VijayKalmath
Copy link
Contributor

What does this PR do?

Summary

In function _copy_script_and_other_resources_in_importable_dir, using string split when generating meta_path throws error in the edge case raised in #4540.

Additions

Changes

  • Changed meta_path to use os.path.splitext instead of using str.split to generalize code.

Deletions

Issues Addressed :

Fixes #4540

In function `_copy_script_and_other_resources_in_importable_dir`,
using string split when generating `meta_path` throws error in the
edge case raised in #4540.

Using `os.path.splitext` generalizes json path creation.
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 28, 2022

The documentation is not available anymore as the PR was closed or merged.

@VijayKalmath
Copy link
Contributor Author

@albertvillanova, Can you please review this PR for Issue #4540

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you !

@lhoestq lhoestq merged commit 556f015 into huggingface:main Jul 7, 2022
@VijayKalmath
Copy link
Contributor Author

@lhoestq Thank you for merging the PR . Is there a slack channel for contributing to the datasets library. I would love to work on the library and make meaningful contributions.

@lhoestq
Copy link
Member

lhoestq commented Jul 8, 2022

Hi ! Sure feel free to join our discord ^^
https://discuss.huggingface.co/t/join-the-hugging-face-discord/11263 so that we can discuss together mor eeasily. Otherwise everything happens on github ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid splitting by .py for the file.

3 participants